import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Redirect from '@/components/Redirect'
import Indexs from '@/pages/indexs'
import UserInfo from '@/pages/userinfo'
import Login from '@/pages/login'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: Indexs
    }, {
      path: '/index',
      name: 'indexs',
      component: Indexs
    }, {
      path: '/hello',
      name: 'hello',
      component: HelloWorld
    }, {
      path: '/userinfo',
      name: 'userinfo',
      component: UserInfo
    }, {
      path: '/login',
      name: 'login',
      component: Login
    }, {
      path: '/redirect',
      name: 'redirect',
      component: Redirect
    }
  ]
})
